import request from '@/utils/request'

// 查询用户单位列表
export function listUserCompany(query) {
  return request({
    url: '/system/userCompany/list',
    method: 'get',
    params: query
  })
}

// 查询用户单位详细
export function getUserCompany(baseId) {
  return request({
    url: '/system/userCompany/' + baseId,
    method: 'get'
  })
}

// 新增用户单位
export function addUserCompany(data) {
  return request({
    url: '/system/userCompany',
    method: 'post',
    data: data
  })
}

// 修改用户单位
export function updateUserCompany(data) {
  return request({
    url: '/system/userCompany',
    method: 'put',
    data: data
  })
}

// 删除用户单位
export function delUserCompany(baseId) {
  return request({
    url: '/system/userCompany/' + baseId,
    method: 'delete'
  })
}
